﻿using ClusteringProblem.Maths.Metrics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClusteringProblem.Application.Helpers
{
    class EnumsExtension
    {
        public static Dictionary<string, DistanceMetricsTypes> DistanceMeasureToDictionary()
        {
            Dictionary<string, DistanceMetricsTypes> dc = new Dictionary<string, DistanceMetricsTypes>();
            dc.Add(Translations.CosineDistance, DistanceMetricsTypes.CosineDistance);
            dc.Add(Translations.EuclideanDistance, DistanceMetricsTypes.EuclideanDistance);
            dc.Add(Translations.GowerDistance, DistanceMetricsTypes.GowerDistance);
            dc.Add(Translations.ManhattanDistance, DistanceMetricsTypes.ManhattanDistance);
            dc.Add(Translations.MinkowskiDistance, DistanceMetricsTypes.MinkowskiDistance);

            return dc;
        }
    }
}
